//
//  KRProvince.m
//  QuickCare
//
//  Created by 张凯锐 on 16/7/11.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import "KRProvince.h"

@implementation KRProvince
- (instancetype)initWithDic:(NSDictionary *)dic {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (instancetype)provinceWithDic:(NSDictionary *)dic {
    return [[self alloc] initWithDic:dic];
}
+ (NSArray *)province {
    NSArray *dicArr = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"cities.plist" ofType:nil]];
    NSMutableArray *desArr = [NSMutableArray array];
    for (NSDictionary *dic in dicArr) {
        KRProvince *province = [KRProvince provinceWithDic:dic];
        [desArr addObject:province];
    }
    return desArr;
}

@end
